package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class LianxirenActivity extends AppCompatActivity {

    private ImageView lxr_iv;
    private ImageView dong_iv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lianxiren);

        initView();

        initData();

        initEvent();

    }
    private void initView(){
        lxr_iv = findViewById(R.id.lxr_iv);
        dong_iv = findViewById(R.id.dong_iv);
    }
    private void initData(){

    }
    private void initEvent(){
lxr_iv.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        Intent intent = new Intent(LianxirenActivity.this,MainActivity.class);
        startActivity(intent);
    }
});
dong_iv.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        Intent intent = new Intent(LianxirenActivity.this,DongtaiActivity.class);
        startActivity(intent);
    }
});
    }
}


